Skip to content

Domoticz

322 Topics 2.3k Posts
  • lost serial gateway after un plug power Rpi

    45
    0 Votes
    45 Posts
    14k Views
    peerkersezuukerP
    Thank's for the answers to this problem. They didn't work for me, but i think i solved mine. Stop monitoring the serial port for data from a terminal session. See my post at Domoticz forum.
  • Inclusion button or not?

    2
    0 Votes
    2 Posts
    1k Views
    sundberg84S
    @ostgardh - I have the same setup and never uses inclusion mode button on the hardware. There is a setup in the domoticz software to turn off inclusion but normal case is that it includes everything that sends a value.
  • Node with DS18B20 and DHT22

    13
    0 Votes
    13 Posts
    6k Views
    Jon EngJ
    So I researched this a bit and here is the answer: The grouping of devices origins from this commit: https://github.com/domoticz/domoticz/pull/847 and the logic is: https://github.com/domoticz/domoticz/issues/276 Unfortunately it doesn´t work very well with other sensor combinations that Temp/hum/pressure - like mine with voltage, impedance and so on.. I found a workaround by naming all sensors v_hum - then they are placed in different groups and are possible to work with in domoticz...
  • Custom icons

    6
    6 Votes
    6 Posts
    6k Views
    fernando alvarez buyllaF
    Really nice icons thanks for sharing
  • Controller can not connect to Ethernet GW

    3
    0 Votes
    3 Posts
    2k Views
    XortozX
    @mfalkvidd i've tried to comment that, when i compile it with AVR boards v 1.6.15 it just restarts all the time. Tried with v1.6.8 and then it stopped restarting. However, i still can't ping my gateway. I've seen that other people get a message that the gateway has started, but i don't get that.
  • Water tank instant volume

    14
    2 Votes
    14 Posts
    8k Views
    B
    @pjr Tanks a lot for your advice regarding our tank level Axis label and Icon in Domoticz. Since I'm using the linux version of domoticz I can change these parameters! Thanks again for your support.
  • feedback for fail or right nodes ?!

    1
    0 Votes
    1 Posts
    697 Views
    No one has replied
  • Is it possible to send s_weight to domoticz?

    9
    0 Votes
    9 Posts
    2k Views
    Boots33B
    @Cliff-Karlsson An interesting project. As you don't need to know the weight that will make the sketch much simpler. You can just use the raw ADC values to work out the best threshold for when the bed is occupied. Try the sketch below and see if you get meaningful results . Depending on your voltage divider you should get a value between 0 and 1023 sent every 2 seconds. /** * weightTester */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 #include <SPI.h> #include <MySensors.h> #define CHILD_ID_WEIGHT 0 int inPin = 3 ; // change this to the analog pin you are using int forceReading = 0; //placeholder for the analog readings unsigned long waitTime = 2000; // time between message sends (in milliseconds) MyMessage msg(CHILD_ID_WEIGHT, V_WEIGHT); void setup(){ } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Weight Test", "1.0"); // Register all sensors to gateway (they will be created as child devices) present(CHILD_ID_WEIGHT, S_WEIGHT); } void loop() { forceReading = analogRead(inPin); send(msg.set(forceReading)); #ifdef MY_DEBUG Serial.println(forceReading); #endif wait(waitTime); }
  • sending messages not working for some reason

    1
    0 Votes
    1 Posts
    766 Views
    No one has replied
  • S_WATER_QUALITY (Unknown)

    3
    0 Votes
    3 Posts
    1k Views
    mikeSM
    @sundberg84 Thanks I thought it should work, so I need to change my version of that .cpp file to the one in the link or install some beta version of Domoticz then??
  • Ethernet GW W5100 can not connect to Domoticz

    3
    0 Votes
    3 Posts
    2k Views
    Marek BělušaM
    Thanks, solveded, IDE 1.6.7 OK !
  • Forcing a status updated when sensor value has not changed

    9
    1 Votes
    9 Posts
    6k Views
    Boots33B
    @sundberg84 Is there any trick to get this to work in Domoticz ? I have just added a heartbeat to one of my sketches and I don't see any changes in the last seen time for that node in Domoticz. The serial monitor for the node reports the heartbeat is sent TSP:SANCHK:OK TSP:MSG:SEND 8-8-0-0 s=255,c=3,t=22,pt=5,l=4,sg=0,ft=0,st=ok:1258134 Heartbeat Sent But I get nothing in Domoticz, should I see it in the log file?
  • problem to display sensors (nrf24l01pa direct on Rpi)

    11
    0 Votes
    11 Posts
    3k Views
    nicoN
    @mfalkvidd i made the change (RPi->arduino nano->NRF) it seemd working but now my sensor don't work(i don't change anything on him) lol. I have this log on my node: TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=2) TSM:FPAR TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT And if i connect my gateway on my PC (with arduino monitor)all work, it's when i connect the gateway on domoticz it don't work but in domoticz i have: [image: 1477170380779-upload-25684e21-6c87-4470-9404-f3972d4b886c] why? OK i found the problem, i change the antenna(for a NRF24L01) and it works.
  • How to update LIGHT state on Domoticz?

    6
    0 Votes
    6 Posts
    3k Views
    palande.vaibhavP
    @AWI how do I use request()? What I need to do is my automation for the sensors is running on the Arduino itself. So, if domoticz stops working and then some values of the switches or lights change, I want Domoticz to display the same values not the values it had the last time. I tried what @nagelc said but it changes the state of the switch in domoticz. I just want to update what domoticz displays not actually change the state of the LIGHT. I read on Domoticz forum that this can be achieved using dummy switch which when set up as the slave for the actual switch only updates the displayed state of the switch. But this was discussed for JSON. I don't know how to make mysensors talk to the dummy node. Do you have any idea about this?
  • Adding a relay switch

    4
    0 Votes
    4 Posts
    2k Views
    Boots33B
    @drradkin First you need to add your serial gateway as a hardware device. You can see below my LAN Gateway on the hardware page. You will need to select the Mysensors gateway USB from the drop down list and probably enter the serial port it is connected to. [image: 1476511575734-screenshot-146.jpg] Once the gateway is running start up your node and then click the setup button for the mysensors gateway. You should now see the node listed. if you click on the node you will see its children listed as well. In the picture below you can see my lightning detector node which also has two light (relay) switches shown as S_LIGHTS_BINARY with child id's of 3 and 4 [image: 1476511922462-screenshot-147.jpg] Now you go to the Devices page and you should see the switches listed there. You can see my two switches with a unit id of 3 and 4 in the middle of the list. Now to use these you will need to click on the green arrow for the switch over on the right side of the page (mine are blue as they are already added) to add them to your used devices. you will get a requester to give it a name. [image: 1476512525853-screenshot-148.jpg] Then you will be able to see them on your switches page. Again you can see my two switches called Flood Lights and Pool Lamps. you can turn them on and off by clicking the light globe icon. [image: 1476512807850-screenshot-149.jpg]
  • sensor is offline for long time !

    3
    0 Votes
    3 Posts
    1k Views
    AnticimexA
    https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help
  • Serial Gateway not recognized

    5
    0 Votes
    5 Posts
    2k Views
    mfalkviddM
    @edsteve no waste at all. Someone else might make the same mistake and now they'll be able to find the solution if they search. Thanks for reporting back :)
  • error auto restart pi

    3
    0 Votes
    3 Posts
    988 Views
    DickD
    @mfalkvidd I did not noticed that, I changed it to disabled and will monitor it during the upcomming days. Thanks for the tip!
  • ESP8266 GW with sensors

    11
    0 Votes
    11 Posts
    3k Views
    mfalkviddM
    @Patrik-Söderström I used this calculator. I entered 3.3V as the input voltage and 1.0 as the output voltage. I set R2 to 330 which is a common resistor value. [image: 1475435127751-voltage_calc.png] I pressed "Compute" and got a value of 759 for R1: [image: 1475435224732-r2.png] 759 ohm is not a resistor value that is available, but I looked at the values in the pack on ebay and saw that the nearest was 680. I entered that in R1 and cleared the output field: [image: 1475435361062-output_calc.png] and pressed Compute again. I now got an output of 1.078V which can be seen as close enough to 1V. [image: 1475435460675-output.png] This can of course be done by hand, and is a nice educational task if you want to learn the details :-) The important part is the ratio between the two resistors. Try with 680,000 and 330,000 in the calculator and you'll see that you get the same output value. However, there is a third component: The LM393. It also has a resistor value. If the resistors in the voltage divider are small compared to the resistor in the LM393, the calculations will be correct. But if the resistors have about the same value as the resistor in the LM393 the calculations must take the LM393 into account. That's why 330 and 680 ohm probably works better than 330kohm and 680kohm. A caveat with using small resistor values is that they will consume more power. This is important if the sensor is battery powered, but since the NodeMCU generally consumes too much power to run on battery anyway we can ignore the power consumption for now. As long as the resistors are at least 100ohm the used power will be less than what the NodeMCU consumes.
  • 0 Votes
    65 Posts
    19k Views
    R
    @pjr thank you, i am trying to learn signing for use :)

25

Online

11.7k

Users

11.2k

Topics

113.1k

Posts